package com.mt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Wang
 * @since 2020-12-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mt_cinema_seat")
@ApiModel(value="CinemaSeat对象", description="")
public class CinemaSeat implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "自增id")
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;

    private Integer seatColumn;

    private Integer seatRow;

    private Integer hallId;

    @ApiModelProperty(value = "启用/已占用/禁用 0/1/2")
    private Integer status;

    @TableField(exist = false)
    private Integer buyStatus=0;

    @TableField(exist = false)
    private boolean available;

    @ApiModelProperty(value = "入库时间")
    private Date insertTime;

    private Date updateTime;

    public CinemaSeat(Integer hallId,Integer seatRow, Integer seatColumn) {
        this.seatColumn = seatColumn;
        this.seatRow = seatRow;
        this.hallId = hallId;
    }
    public CinemaSeat() {
    }
}
